#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import os
import subprocess

WIN_ARC_CMD = "7z u sleeper.7z -xr@ignor.txt ../sleeper"
LIN_ARC_CMD = "tar czf sleeper.tar.gz -X ignor.txt ../sleeper"

def make_archive():
    arc_cmd = ""
    if os.uname().sysname == "Linux" :
        arc_cmd = LIN_ARC_CMD

    os.system(arc_cmd)


def main():
    print("Start archiving Sleeper")
    make_archive()
    print("eat it !")


if __name__=='__main__':
    main()
